<template>
  <div class="bottom-info-wrap">
    <div class="bottom-info">
      <div class="info-side">
        <img src="@/assets/images/bottom-logo-pc.png" alt="" class="logo">
        <div class="info-wrap">
          <p><span class="link" ><a class="link" href="https://kdygns.yunqiuwan.com/ysi3/index.html" target="_blank">服务条款</a></span><span> | </span><a class="link" href="http://kdygns.yunqiuwan.com/ysi.com/index.html" target="_blank">隐私协议</a></p>
          <p class="info"><span class="mr5">上海市极贝网络科技有限公司</span>
          </p>
          <p class="info"><span class="mr5">沪ICP备15034828号</span><span>增值电信业务经营许可证：沪B2-20170008</span>
          </p>
          <p>©极贝游戏版权所有</p>
        </div>
      </div>
      <div class="intro-wrap">
        <div class="intro-item">
          <template v-if="isMobile">
            <div class="icon-div">
              <img src="@/assets/images/bottom-security.png" alt="" class="icon">
              <p class="title">安全</p>
            </div>
          </template>
          <template v-else>
            <img src="@/assets/images/bottom-security.png" alt="" class="icon">
          </template>
          <div class="text-wrap">
            <p class="title" v-if="!isMobile">安全</p>
            <p class="desc">官方支付中心</p>
          </div>
        </div>
        <div class="intro-item">
          <template v-if="isMobile">
            <div class="icon-div">
              <img src="@/assets/images/bottom-convenience.png" alt="" class="icon">
              <p class="title">便捷</p>
            </div>
          </template>
          <template v-else>
            <img src="@/assets/images/bottom-convenience.png" alt="" class="icon">
          </template>
          <div class="text-wrap">
            <p class="title" v-if="!isMobile">便捷</p>
            <p class="desc">批量购买，一键加购</p>
          </div>
        </div>
        <div class="intro-item">
          <template v-if="isMobile">
            <div class="icon-div">
              <img src="@/assets/images/bottom-affordablity.png" alt="" class="icon">
              <p class="title">实惠</p>
            </div>
          </template>
          <template v-else>
            <img src="@/assets/images/bottom-affordablity.png" alt="" class="icon">
          </template>
          <div class="text-wrap">
            <p class="title" v-if="!isMobile">实惠</p>
            <p class="desc">丰富的加赠，返利活动</p>
          </div>
        </div>
        <div class="intro-item">
          <template v-if="isMobile">
            <div class="icon-div">
              <img src="@/assets/images/bottom-efficiency.png" alt="" class="icon">
              <p class="title">高效</p>
            </div>
          </template>
          <template v-else>
            <img src="@/assets/images/bottom-efficiency.png" alt="" class="icon">
          </template>
          <div class="text-wrap">
            <p class="title" v-if="!isMobile">高效</p>
            <p class="desc">购买后极速到账，无延迟</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'bottomBar',
  props: {
    isMobile: {
      type: Boolean,
      default: false
    }
  }
}
</script>
<style lang="scss">
.bottom-info-wrap {
  display: flex;
  align-items: center;
  height: 198px;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .1);
  margin-top: 20px;

  .bottom-info {
    flex: 1 1;
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 30px;

    .info-side {
      display: flex;
      justify-content: left;
      flex-direction: column;

      .logo {
        width: 167px;
        height: 50px;
      }

      .info-wrap,.info-wrap .link {
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #999;
        line-height: 20px;
        margin-top: 10px;

        .mr5 {
          margin-right: 5px;
        }
      }
    }

    .intro-wrap {
      max-width: 560px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;

      .intro-item {
        display: flex;
        width: 220px;
        margin-right: 20px;
        margin-bottom: 20px;

        .icon {
          width: 54px;
          height: 54px;
          flex-shrink: 0;
          margin-right: 10px;
        }

        .text-wrap {
          display: flex;
          justify-content: center;
          flex-direction: column;

          .title {
            color: #666;
            width: 70px;
            font-size: 14px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            line-height: 18px;
          }

          .desc {
            color: #999;
            font-size: 12px;
            line-height: 18px;
            margin-top: 5px;
          }
        }
      }
    }
  }
}

.mobile-body .bottom-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  height: 440px;
  margin-top: 10px;
  padding-bottom: 80px;

  .bottom-info {
    display: flex;
    flex: 1 1;
    flex-direction: column-reverse;
    justify-content: space-around;

    .info-side {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;

      .logo {
        width: 150px;
        height: 45px;
      }

      .info-wrap {
        margin-top: 10px;
        padding: 0;
        margin-left: 0;
        border: none;
        text-align: center;

        .info {
          display: flex;
          flex-direction: column;
        }
      }
    }

    .intro-wrap {
      display: flex;
      flex-wrap: wrap;
      margin-top: 20px;

      .intro-item {
        display: flex;
        flex-direction: column;
        width: calc((100% - 20px)/2);
        margin-right: 10px;
        margin-bottom: 15px;
        padding-left: 15px;

        .icon-div {
          display: flex;
          align-items: center;

          .icon {
            width: 24px;
            height: 24px;
            background-size: cover;
            background-repeat: no-repeat;
            flex-shrink: 0;
            margin-right: 5px;
          }

          .title {
            color: #666;
            width: 70px;
            font-size: 14px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            line-height: 18px;
          }
        }
      }
    }
  }
}
</style>